package com.djhu.springsimple.beans.core;

/**
 * @author by zw on 2018/4/16.
 */
public abstract class ApplicationEvent {
    public Object source;
    private final Long timestamp;

    public ApplicationEvent(Object source) {
        this.source = source;
        this.timestamp = System.currentTimeMillis();
    }

    public Object getSource() {
        return source;
    }

    public void setSource(Object source) {
        this.source = source;
    }

    public Long getTimestamp() {
        return timestamp;
    }
}